//
//  LeftTextImgBtnView.h
//  HuaXin
//
//  Created by 江伟 on 2018/11/2.
//

#import <UIKit/UIKit.h>
#import "BaseView.h"


/// 左文字右图片
@interface LeftTextImgBtnView : BaseView

/// 设置后布局会改变 默认img靠右
@property (nonatomic,copy) NSString *title;
/// 修改图片size
@property (nonatomic,assign) CGSize imgSize;
/// 修改文字和图片的间距
@property (nonatomic,assign) CGFloat space;
@property (nonatomic,strong) UILabel *lab;
@property (nonatomic,strong) UIImageView *img;
@property (nonatomic,strong) UITapGestureRecognizer *tap;
/// 给个标识符
@property (nonatomic,assign) NSInteger index;
/// 给个状态
@property (nonatomic,assign) NSInteger state;

- (instancetype)initWithFrame:(CGRect)frame space:(CGFloat)space imgSize:(CGSize)size;

- (void)addTapGestureTarget:(id)target action:(SEL)selector;
@end
